package com.developmentReformProject.enums;

public enum AuditStatusEnum {
    NOAUDIT("0","未审核"),
    AUDITFAILED("1","审核未通过");

    private String value;
    private String description;

    public String getValue() {
        return value;
    }
    public String getDescription() {
        return description;
    }

    AuditStatusEnum(String value, String description){
        this.value=value;
        this.description=description;
    }

    public static String valueToDESC(String value){
        for(AuditStatusEnum auditStatusEnum: AuditStatusEnum.values()){
            if(value.equals(auditStatusEnum.getValue())){
                return auditStatusEnum.getDescription();
            }
        }
        return null;
    }
}
